<template>
  <div class="signin_wrapper">
    <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="用户名">
        <el-input clearable v-model="form.username" @blur="checkIfRepeat"></el-input>
      </el-form-item>
      <el-form-item label="昵称">
        <el-input clearable v-model="form.nickname"></el-input>
      </el-form-item>
      <el-form-item label="密码">
        <el-input clearable v-model="form.password" type="password"></el-input>
      </el-form-item>
      <el-form-item label="确认密码">
        <el-input clearable v-model="form.repassword" type="password"></el-input>
      </el-form-item>
      <el-form-item align="center">
        <el-button type="primary" @click="onSubmit">注册</el-button>
        <el-button @click="cancle">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  import axios from 'axios'

  export default {
    name: "sign_in",
    methods: {
      cancle() {
        this.$router.go(-1);
      },
      onSubmit() {

      },
      checkIfRepeat(){

      },
    },
    data() {
      return {
        form: {
          username: '',
          nickname: '',
          password: '',
          repassword: '',
        }
      }

    }
  }
</script>

<style scoped>
  .signin_wrapper {
    padding-top: 100px;
    width: 50%;
    height: 500px;
    position: relative;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    margin: auto;
    line-height: 500px;
  }
</style>
